package com.scholarship.modules.backend.controller;

import com.scholarship.common.entity.RetCode;
import com.scholarship.common.entity.RetResponse;
import com.scholarship.common.entity.RetResult;
import com.scholarship.modules.backend.service.StuTotalScoreService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhzGod
 * @date 2021/10/8 11:15
 * @introduction
 */
@Api(tags = {"获取总分接口"})
@RestController
public class StuTotalScoreController {

    @Autowired
    StuTotalScoreService stuTotalScoreService;

    @ApiOperation("根据学号获取学生总分 @author zhz")
    @GetMapping("/backend/getStuTotalScoreById")
    public RetResult getStuTotalScoreById(String StuId){
        return RetResponse.makeRsp(RetCode.SUCCESS,"分数查询成功",stuTotalScoreService.getStuTotalScoreById(StuId));
    }
}
